package com.personal.pojo;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

public class TCourse {
    private Integer courseid;

    private String coursename;

    private Float coursemoney;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date coursestart;

    @JsonFormat(pattern = "yyyy/MM/dd")
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    private Date courseend;

    private Integer coursecoach;

    private Integer courseclassroom;
    private Integer courseMem;
    private Integer allApply;
    private Integer courseweek;
    private Integer coursesection;

    private TCoach coach; //负责教练
    private TClassroom classroom; //上课教室
    private TWeek week; //星期几上课
    private TSection section; //第几节
    private String coursestates;

    @Override
    public String toString() {
        return "TCourse{" +
                "courseid=" + courseid +
                ", coursename='" + coursename + '\'' +
                ", coursemoney=" + coursemoney +
                ", coursestart=" + coursestart +
                ", courseend=" + courseend +
                ", coursecoach=" + coursecoach +
                ", courseclassroom=" + courseclassroom +
                ", courseMem=" + courseMem +
                ", allApply=" + allApply +
                ", courseweek=" + courseweek +
                ", coursesection=" + coursesection +
                ", coach=" + coach +
                ", classroom=" + classroom +
                ", week=" + week +
                ", section=" + section +
                ", coursestates='" + coursestates + '\'' +
                '}';
    }

    public Integer getAllApply() {
        return allApply;
    }

    public void setAllApply(Integer allApply) {
        this.allApply = allApply;
    }

    public Integer getCourseMem() {
        return courseMem;
    }

    public void setCourseMem(Integer courseMem) {
        this.courseMem = courseMem;
    }

    public Integer getCourseweek() {
        return courseweek;
    }

    public void setCourseweek(Integer courseweek) {
        this.courseweek = courseweek;
    }

    public Integer getCoursesection() {
        return coursesection;
    }

    public void setCoursesection(Integer coursesection) {
        this.coursesection = coursesection;
    }

    public TWeek getWeek() {
        return week;
    }

    public void setWeek(TWeek week) {
        this.week = week;
    }

    public TSection getSection() {
        return section;
    }

    public void setSection(TSection section) {
        this.section = section;
    }

    public TCoach getCoach() {
        return coach;
    }

    public void setCoach(TCoach coach) {
        this.coach = coach;
    }

    public TClassroom getClassroom() {
        return classroom;
    }

    public void setClassroom(TClassroom classroom) {
        this.classroom = classroom;
    }

    public Integer getCourseid() {
        return courseid;
    }

    public void setCourseid(Integer courseid) {
        this.courseid = courseid;
    }

    public String getCoursename() {
        return coursename;
    }

    public void setCoursename(String coursename) {
        this.coursename = coursename == null ? null : coursename.trim();
    }

    public Float getCoursemoney() {
        return coursemoney;
    }

    public void setCoursemoney(Float coursemoney) {
        this.coursemoney = coursemoney;
    }

    public Date getCoursestart() {
        return coursestart;
    }

    public void setCoursestart(Date coursestart) {
        this.coursestart = coursestart;
    }

    public Date getCourseend() {
        return courseend;
    }

    public void setCourseend(Date courseend) {
        this.courseend = courseend;
    }

    public Integer getCoursecoach() {
        return coursecoach;
    }

    public void setCoursecoach(Integer coursecoach) {
        this.coursecoach = coursecoach;
    }

    public Integer getCourseclassroom() {
        return courseclassroom;
    }

    public void setCourseclassroom(Integer courseclassroom) {
        this.courseclassroom = courseclassroom;
    }

    public String getCoursestates() {
        return coursestates;
    }

    public void setCoursestates(String coursestates) {
        this.coursestates = coursestates == null ? null : coursestates.trim();
    }

}